package _03多态的优缺点;

public class Demo {
    public static void main(String[] args) {
        Animal a1 = new Cat();
        a1.eat();


        Animal a2 = new Dog();
        a2.eat();



    }
}
